﻿#region Using Directives

using System;
using System.Collections.Generic;
using System.Reflection;

#endregion

namespace GeekRule.ORM.DataMapping
{
    /// <summary>
    /// Holds data result field-to-entity property mappings for a given entity type.
    /// </summary>
    public class EntityMapping
    {
        #region Public Accessors

        public Type EntityType { get; set; }
        public Dictionary<PropertyInfo, string> PropertyMapping { get; set; }
        public Dictionary<string, PropertyInfo> FieldMapping { get; set; }

        #endregion

        #region Constructor

        public EntityMapping(Type entityType)
        {
            EntityType = entityType;
            PropertyMapping = new Dictionary<PropertyInfo, string>();
            FieldMapping = new Dictionary<string, PropertyInfo>();
        }

        #endregion
    }
}
